import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/home/Home'
import Pick from '../views/home/pick/Pick'
import Classfiy from '../views/home/classfiy/Classfiy'
import Xmbook from '../views/home/xmbook/Xmbook'
import Cart from '../views/home/cart/Cart'
import Myepet from '../views/home/myepet/Myepet'
import Search from "../views/search/Search";
import Detail from "../views/detail/Detail";
import Baoshui from "../views/home/pick/navicon/Baoshui";
import QIandao from "../views/home/pick/navicon/Qiandao";
import Gongyi from "../views/home/pick/navicon/Gongyi";
import Baoxian from "../views/home/pick/navicon/Baoxian";
import Peisong from "../views/home/pick/navicon/Peisong";
import Gongju from "../views/home/pick/navicon/Gongju";
import Choujian from "../views/home/pick/navicon/Choujian";
import Duili from "../views/home/pick/navicon/Duili";
import Tejia from "../views/home/pick/navicon/Tejia";
import Shangxin from "../views/home/pick/navicon/Shangxin";
import Goodslists from "../views/search/goodslists/Goodslists";







Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    redirect: '/home/pick'
  },
  {
    path: '/home',
    name: 'Home',
    component: Home,
    // redirect: '/home/pick',
    children:[
      {
        path:'pick',
        name:'pick',
        component:Pick,
      },
      {
        path:'classfiy',
        name:'classfiy',
        component:Classfiy
      },
      {
        path:'xmbook',
        name:'xmbook',
        component:Xmbook
      },
       {
        path:'myepet',
        name:'myepet',
        component:Myepet
      },
    ]
    
  },
  {
    path:'/search',
    name:'search',
    component:Search,
  },
  {
    path:'/detail',
    name:'detail',
    component:Detail,
  },{
    path:'/cart',
    name:'cart',
    component:Cart
  }
  ,{
    path:'/baoshui',
    name:'E宠保税-狗狗',
    component:Baoshui
  },
  {
    path:'/qiandao',
    name:'签到抽奖-狗狗',
    component:QIandao
  },
  {
    path:'/gongyi',
    name:'E宠公益-猫狗',
    component:Gongyi
  },
  {
    path:'/baoxian',
    name:'宠物保险',
    component:Baoxian
  },
  {
    path:'/peisong',
    name:'周期配送-狗狗',
    component:Peisong
  },
  {
    path:'/gongju',
    name:'养宠工具-猫狗',
    component:Gongju
  },
  {
    path:'/choujian',
    name:'批次抽检-狗狗',
    component:Choujian
  }, 
  {
    path:'/duili',
    name:'0元兑礼-猫狗',
    component:Duili
  },
  {
    path:'/tejia',
    name:'特价尾货-狗狗',
    component:Tejia
  },
  {
    path:'/shangxin',
    name:'上新好物-狗狗',
    component:Shangxin
  },
  {
    path:'/goodslists',
    name:'goodslists',
    component:Goodslists
  },
  

 
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
